  var lunbo = document.getElementsByClassName('lunbo');
  var zbxs  = document.getElementsByClassName('zbxs');
  var zbxsa = document.getElementsByClassName('zbxsa');
  //首页轮播图
        var len = lunbo.length;
        var i = 0;
        function run(){
            s = setInterval(function(){
                for(var j = 0 ; j < len; j++){
                    lunbo[j].style.display= "none";
                }
              
                lunbo[i].style.display = 'inline';
                i++;
                if(i >= len){
                    i = 0;
                }
            },2000);
        }
        run();

        //重磅新书轮播图   
        for(var m =0 ; m < len ; m++){
            lunbo[m].onmouseover =  function(){
                clearInterval(s);
            }
            lunbo[m].onmouseout = function(){
                run();
            }
        }

        var zlen = zbxs.length;
        var k = 0;

       function zbx(){
            s = setInterval(function(){
                for(var j = 0 ; j < zlen; j++){
                    zbxs[j].style.display= "none";
                    zbxsa[j].style.display ='none'; 
                }
              
                zbxs[k].style.display = 'inline';
                zbxsa[k].style.display='block';
                k++;
                if(k >= zlen){
                    k = 0;
                }
                console.log(k);
            },2000);
        }
        zbx();